public class OverrideDemo03 {
    public static void main(String[] args) {
        D d = new F();// 多态
        d.test();
    }
}


class D {

    // 静态方法
    public static void test() {
        System.out.println("test1");
    }
}

class F extends D {


    public static void test() {
        System.out.println("test2");
    }
}
